<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1">
    <meta content=always name=referrer>
    <meta name="format-detection" content="telephone=no">
    <link rel="stylesheet" type="text/css" href="__STATIC__/css/style.css">
    <script src="__STATIC__/js/jquery-1.8.2.js"></script>
    <title>设置</title>
    <script>
        $(function(){
            //退出账户
            $('.submit').click(function(){
                layer.open({
                    content:'确定退出登录吗?',
                    btn:['确定','取消'],
                    yes:function(index){
                        $.ajax({
                            url:"quit",
                            type:'post',
                            dataType:'json',
                            success:function(t){
                                layer.open({content:t.message,skin:'msg',time:2});
                                if (t.code == 200){
                                    setTimeout(function () {
                                        window.location.href = "{:url('mobile/shop_auth/login')}";
                                    },2000);
                                }
                            }
                        });
                        layer.close(index);
                    }

                })
            });
            //拨打客服热线
            $('#connectUs').click(function(){
                var phone = $('#phone').text();
                window.location.href = "wtai://wp//mc;"+phone;
            })
        })
    </script>
</head>
<body>
<div class="wrap-shopinfo">
    <div class="header">
        <p>设置</p>
        <img src="__STATIC__/img/back.png" onclick =window.location.href="{:url('mobile/shop_auth/member_shop')}"; class="back">
    </div>
    <div class="set">
        <ul>
            <li>
                <h4 class="left">账户安全</h4>
                <p class="right"><img src="__STATIC__/img/next.png" class="next" onclick="location.href='safety'"></p>
            </li>
            <li>
                <h4 class="left">关于我们</h4>
                <p class="right"><img src="__STATIC__/img/next.png" class="next" onclick="location.href='about_us'"></p>
            </li>
            <li>
                <h4 class="left">联系我们</h4>
                <p class="right"><span id="phone">{$hot_line}</span><img src="__STATIC__/img/next.png" class="next" id="connectUs"></p>
            </li>
            <li>
                <h4 class="left">帮助与反馈</h4>
                <p class="right"><img src="__STATIC__/img/next.png" class="next" onclick="location.href='help_feedback'"></p>
            </li>
        </ul>
    </div>
    <input type="button" class="submit" value="退出登录" >
    <div class="board"></div>
</div>
{include file="public/src" /}
</body>
</html>